package mspbots.qbd.data.online.balancesheet;

import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Mono;

/**
 * @author Jay.Yang
 */
public interface OnlineBalanceSheetRepository extends R2dbcRepository<OnlineBalanceSheet, Long> {

    /**
     * find entity other id and tenant id
     *
     * @param tenantId   tenant id
     * @param timePeriod timePeriod
     * @return account entrity
     */
    Mono<OnlineBalanceSheet> findByTenantIdAndTimePeriod(Long tenantId, String timePeriod);
}
